package clsr.info.blog.service;

import clsr.info.blog.common.api.IClassifyService;
import clsr.info.blog.common.entity.Classify;
import clsr.info.blog.repository.ClassifyRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassifyServiceImpl extends BaseServiceImpl<Classify> implements IClassifyService {

  @Autowired private ClassifyRepository classifyRepository;

  @Override
  public List<Classify> loadClassify(Integer userId) {
    List<Classify> all = classifyRepository.findAll();
    return all;
  }
}
